import Api from "./request";

// 获取动态数据
export const getDynamicListApi = (params) => Api.get("/dynamic", params);

// 删除动态接口
export const deleteDynamicApi = (data) => Api.delete("/dynamic/" + data.id);

// 添加动态接口
export const addDynamicApi = (data) => Api.post("/dynamic", data);

// 修改动态接口
export const updateDynamicApi = (data) => Api.put("/dynamic", data);

// 获取举报动态接口
export const getReportDynamicApi = (params) =>
  Api.get("/dynamic/report/list", params);

// 修改举报动态接口
export const updateReportDynamicApi = (data) =>
  Api.put("/dynamic/report", data);

// 删除举报动态接口
export const deleteReportDynamicApi = (data) =>
  Api.delete("/dynamic/report/del", data);
